<?php
class tmenu_view extends SClass {

    public function process() {
     $post = ServiceUtils::GetFactory()->getTmenuService()->getTmenuAll();
         $a = array();
       while ($x = $post->getNext()) {
            $a[] = array(
                'id' => $x->getId(),
                'name' => $x->getName(),
                'pos' => $x->getPosition(),
                'url' => $x->getURL(),

                'edit' => Engine_LinkMaker::GetURLByContentID(
                    'controlpanel-tmenu_edit', $x->getId()),
                'delete' => Engine_LinkMaker::GetURLByContentID(
                    'controlpanel-tmenu_delete', $x->getId())
            );
        }
        $this->assign('postArray', $a);

    }

}